<include file="Public/header"/>

<div class="x-nav">
      <span class="layui-breadcrumb">

      </span>
      <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" href="javascript:location.replace(location.href);" title="刷新">
        <i class="layui-icon" style="line-height:30px">ဂ</i></a>
    </div>
    <div class="x-body">
      <div class="layui-row">
        <form class="layui-form layui-col-md12 x-so" action="{:U('store')}" method="get">       
          <input type="text" value="{:I('uid')}" name="uid"  placeholder="请输入会员id" autocomplete="off" class="layui-input">
          <input type="text" value="{:I('name')}" name="name"  placeholder="请输入姓名" autocomplete="off" class="layui-input">
          <input type="text" value="{:I('mobile')}" name="mobile"  placeholder="请输入手机号" autocomplete="off" class="layui-input">
          <div class="layui-input-inline">
          <select name="status">
            <option value="0" <if condition=" $status eq 0"> selected='selected' </if>>选择类型</option>
          	<option value="1" <if condition=" $status eq 1"> selected='selected' </if>>待审核</option>
          	<option value="2" <if condition=" $status eq 2"> selected='selected' </if>>审核通过</option>
          	<option value="3" <if condition=" $status eq 3"> selected='selected' </if>>审核未通过</option>
          </select>
          </div>
          <button class="layui-btn"   type="submit" ><i class="layui-icon">&#xe615;</i></button>
          <button class="layui-btn"   type="reset" >清空</button>
        </form>
      </div>
      <xblock>
        <button class="layui-btn layui-bg-red" onclick="delAll('','{:U('storedel')}')"><i class="layui-icon"></i>真正删除</button>
        <button class="layui-btn layui-bg-green" onclick="issetAll('','{:U('store_agree')}')">批量同意</button>
        <button class="layui-btn layui-bg-blue" onclick="issetAll('','{:U('store_notagree')}')">指量拒绝</button>
        <span class="x-right" style="line-height:40px">共有数据：{$count} 条</span>
      </xblock>
      <table class="layui-table">
        <thead>
          <tr>
            <th>
              <div class="layui-unselect header layui-form-checkbox" lay-skin="primary"><i class="layui-icon">&#xe605;</i></div>
            </th>
            <th>ID</th>
            <th>头像</th>
            <th>姓名</th>
            <th>手机号</th>
            <th>状态</th>
            <th>申请时间</th>
            <th>产品介绍</th>
            <th>审核时间</th>
            </tr>
        </thead>
        <tbody>
        <volist name="list" id="vo">
          <tr>
            <td>
              <div class="layui-unselect layui-form-checkbox" lay-skin="primary" data-id={$vo['id']}><i class="layui-icon">&#xe605;</i></div>
            </td>
            <td>{$vo['id']}</td>
            <td><img src="{$vo['acv']}" style="width: 40px"></td>
            <td>{$vo['name']}</td>
            <td>{$vo['mobile']}</td>
            <td>
            
            	<if condition="$vo.status eq 1"><button class="layui-btn layui-btn-xs layui-btn-normal">未处理</button></if>
            	<if condition="$vo.status eq 2"><button class="layui-btn layui-btn-xs layui-btn-warm">审核通过</button></if>
            	<if condition="$vo.status eq 3"><button class="layui-btn layui-btn-xs layui-btn-danger">审核未通过</button></if>
            </td>
            <td>{$vo['addtime']|date='Y-m-d H:i:s',###}</td>
            <td>{$vo['desc']}</td>
            <td>{$vo['updatetime']}</td>
          </tr>
        </volist>
        </tbody>
      </table>
      <div class="page" id="page">
        {$page}
      </div>
    </div>
<script>
    function issetAll(argument,url){
		    var data = tableCheck.getData();
		    
		    layer.confirm('确认要这样操作吗？',function(index){
	
		        if(data == false || data=='undefined'){
		            layer.msg('参数错误',{icon:5});
		            return false;
		        }
		        $.post(url,{id:data},function (res) {
		            if(res.code){
		                layer.msg(res.msg,{icon:5});
		            }else{
	
		                layer.msg('操作成功', {icon: 1});
		                location.replace(location.href);
		            }
	
		        })
	
		    });
	 }


</script>
<include file="Public/footer"/>

